//
//  BaseWebViewController.h
//  TwoTigerRefactor
//
//  Created by xinph on 2018/4/3.
//  Copyright © 2018年 TwoTiger. All rights reserved.
//

#import "BaseViewController.h"
#import <WebKit/WebKit.h>

@interface BaseWebViewController : BaseViewController <WKUIDelegate, WKNavigationDelegate, WKScriptMessageHandler>

@property (strong, nonatomic, readonly) WKWebView   *webView;
@property (strong, nonatomic) UIProgressView          *progressView;
/// 要加载的网址
@property (copy, nonatomic) NSString                *urlString;
@property (assign, nonatomic, readonly) CGFloat     timeoutInterval; ///< default 30s


- (NSURLRequest*)callRequestOfWebLoadRequest:(NSMutableURLRequest *)request;

- (void)reloadWebPage;

///< 子类需要重写
- (NSString *)customizedViewTitle;

/**
  刷新最后一次访问链接
 */
- (void)refreshLatestRequest;

@end
